<template>
<div class="bigContainer">
<div class="img">
  <img style="border-radius:5px;height: 100%" :src="goods_img">
</div>
  <div class="detail">
    <div class="title">
      <p>{{data.goods_name}}</p>
    </div>
    <div class="price">
      <p>   ￥{{data.goods_price}}</p>
    </div>
  </div>
</div>
</template>

<script>
export default {
  name: "ReUseCard",
  props:['data'],
  data(){
    return{
      goods_img:''

    }
  },
  created() {
    this.goods_img=this.$baseUrl+this.data.goods_img
  },
  methods:{

  }
}
</script>

<style scoped lang="less">
.bigContainer{
  margin-top: 5px;
display: flex;
  flex-direction: row;
  justify-content: space-around;
  .img{
    width: 140px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;

  }
  .detail{
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:flex-start;
    align-content: flex-start;
    .title{
      height: 50px;
      box-sizing: border-box;
      padding-left: 25px;
    }
    .price{
       height: 50px;
       p{
         text-indent: 25px;
         color: red;
       }
    }
  }
}
</style>
